/**
 * Copyright (c) 2018 人人开源 All rights reserved.
 *
 * https://www.renren.io
 *
 * 版权所有，侵权必究！
 */

package com.evaluationSystem.entity.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;
import java.io.Serializable;
import java.util.Date;

/**
 * 字典类型
 *
 * @author Mark sunlightcs@gmail.com
 */
@Data
public class SysDictTypeDTO implements Serializable {
    private static final long serialVersionUID = 1L;

	@Null(message="{id.null}")
	@NotNull(message="{id.require}")
	private Long id;

	@NotBlank(message="{sysdict.type.require}")
	private String dictType;

	@NotBlank(message="{sysdict.name.require}")
	private String dictName;

	private String remark;

	@Min(value = 0, message = "{sort.number}")
	private Integer sort;

	@JsonProperty(access = JsonProperty.Access.READ_ONLY)
	private Date createDate;

	@JsonProperty(access = JsonProperty.Access.READ_ONLY)
	private Date updateDate;
}